

NAME=crawling_yeitu.jar
echo $NAME
ID=`ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $2}'`
echo $ID
echo "---------------"
for id in $ID
do
kill -9 $id
echo "killed $id"
done
echo "----stoped: ${NAME} process-----------"

nohup java -jar crawling_yeitu.jar  2>&1 &

echo "----started  a new : ${NAME} process-----------"
